package teste;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import com.fiap.dao.ClienteDAO;
import com.fiap.dao.EntityManagerFactorySingleton;
import com.fiap.dao.impl.ClienteDAOImpl;
import com.fiap.to.ClienteTO;

public class Teste {

	public static void main(String[] args) {
		EntityManagerFactory factory = EntityManagerFactorySingleton.getInstance();
		EntityManager em = factory.createEntityManager();
		
		ClienteDAO clienteDAO = new ClienteDAOImpl(em);
		
		ClienteTO cliente = new ClienteTO();
		
		cliente.setObs("lalalala");
		
		clienteDAO.insert(cliente);
	}
}
